<template>
  <UiAlert
    :type="type"
    :message="message"
  >
    <slot />
  </UiAlert>
</template>

<script setup lang="ts">
import { UiAlert } from '../ui'

interface Props {
  type: 'error' | 'success'
  message: string
}

defineProps<Props>()
</script> 